<%-- 
    Document   : index
    Created on : 2010-10-28, 8:17:43
    Author     : lx
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="<%=request.getContextPath()%>" var="ctx" scope="session"></c:set>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Kenny Wiki - 全球最大的百科全书</title>
        <meta name="keywords" content="free css templates, chess template, light gray color, CSS, HTML" />
        <meta name="description" content="Chess is a free CSS template provided by templatemo.com" />
        <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="templatemo_wrapper">
            <div id="templatemo_top">

                <!--    	<ul id="social">
        	<li><a href="http://www.templatemo.com" target="_parent"><img src="images/rss.png" alt="rss" /></a></li>
                            <li><a href="http://www.facebook.com/templatemo" target="_parent"><img src="images/facebook.png" alt="facebook" /></a></li>
                            <li><a href="http://www.templatemo.com" target="_parent"><img src="images/twitter.png" alt="twitter" /></a></li>
                            <li><a href="#"><img src="images/myspace.png" alt="myspace" /></a></li>
                            <li><a href="#"><img src="images/gmail.png" alt="gmail" /></a></li>
                        </ul>-->

                <div class="cleaner"></div>
            </div>

            <div id="templatemo_header">
                <c:if test="${sessionScope['kenny.wiki.user'] == null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/regist.jsp">注册</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/login.jsp">登录</a>
                        </div>
                    </div>
                </c:if>
                <c:if test="${sessionScope['kenny.wiki.user'] != null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/secure/my_title">我的词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/add_title.jsp">添加词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/user_info.jsp">个人资料</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/update_info.jsp">修改资料</a>
                        </div>
                        <div class="item"></div>

                        <div class="banner">
                            <a href="${ctx}/user/logout">退出</a>
                        </div>
                        <div class="banner">
                            你好，${sessionScope['kenny.wiki.user'].userName}!
                        </div>
                    </div>
                </c:if>

                <div id="site_title">
                    <a href="http://www.templatemo.com" target="_parent"><img src="images/wiki_logo.png" alt="css templates" /><span>——全球最大中文百科全书</span></a>
                </div> <!-- end of site_title -->
                <div id="search">
                    <form action="${ctx}/search_title" method="post">
                        <input type="text" size="30" name="title_name"/>
                        <input type="submit" value="进入词条"/>
                    </form>
                </div>


            </div> <!-- end of templatemo_header -->

            <div id="templatemo_banner">

                <div id="templatemo_menu">

                    <ul>
                        <li><a href="${ctx}/loadIndex" class="current">首页</a></li>
                        <li><a href="${ctx}/getByCategory?categoryId=1">历史</a></li>
                        <li><a href="${ctx}/getByCategory?categoryId=2">文化</a></li>
                        <li><a href="${ctx}/getByCategory?categoryId=3">地理</a></li>
                        <li><a href="${ctx}/getByCategory?categoryId=4">自然</a></li>
                    </ul>

                </div> <!-- end of templatemo_menu -->

                <div id="banner_right">
                    <h1>智云软件<span>zhiyun soft</span></h1>
                </div>

            </div> <!-- end of templatemo_banner -->

            <div id="templatemo_main_wrapper">
                <div id="templatemo_content_wrapper">

                    <div class="three_column margin_r25 vertical_divider">
                        <h2>历史热词</h2>
                        <img src="images/barchart.png" alt="innovate" />
                        <p>${requestScope['kenny.wiki.hotTitles.1'].titleName} </p>
                        <div class="cleaner_h10"></div>
                        <div class="button float_r"><a href="${ctx}/view_title?titleId=${requestScope['kenny.wiki.hotTitles.1'].titleId}">查看详情</a></div>
                    </div>
                    <div class="three_column margin_r25 vertical_divider">
                        <h2>文化经典</h2>
                        <img src="images/linechart.png" alt="optimizer" />
                        <p>${requestScope['kenny.wiki.hotTitles.2'].titleName}</p>
                        <div class="cleaner_h10"></div>
                        <div class="button float_r"><a href="${ctx}/view_title?titleId=${requestScope['kenny.wiki.hotTitles.2'].titleId}">查看详情</a></div>
                    </div>
                    <div class="three_column">
                        <h2>地理导航</h2>
                        <img src="images/piechart.png" alt="analysis" />
                        <p>${requestScope['kenny.wiki.hotTitles.3'].titleName}</p>
                        <div class="cleaner_h10"></div>
                        <div class="button float_r"><a href="${ctx}/view_title?titleId=${requestScope['kenny.wiki.hotTitles.3'].titleId}">查看详情</a></div>
                    </div>

                    <div class="cleaner_h60"></div>

                    <h2>自然风光</h2>

                    <div class="image_wrapper fl_img"><a href="http://www.templatemo.com" target="_parent"><img src="${ctx}${requestScope['kenny.wiki.hotTitles.4'].titlePhoto}" alt="css templates" /></a></div>
                    <p>
                        <a href="${ctx}/view_title?titleId=${requestScope['kenny.wiki.hotTitles.4'].titleId}">${requestScope['kenny.wiki.hotTitles.4'].titleName}</a>
                    </p>
                    <p>${requestScope['kenny.wiki.hotTitles.4'].titleIntro}</p>
                    <div class="cleaner"></div>
                </div>
            </div><div id="templatemo_main_bottom"></div>

            <div id="templatemo_footer">
                Copyright © 2010 <a href="http://www.zhiyuntech.com">智云软件</a> |
		Designed by <a href="http://www.zhiyuntech.com" target="_parent">Kenny Lin</a> |
		Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp;
                <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
            </div> <!-- end of templatemo_footer -->

            <div class="cleaner"></div>
        </div> <!-- end of templatemo_wrapper -->

    </body>
</html>